import request from '@/utils/request'
import {appConfig} from '../../config/app'

let service = appConfig.microServModules.mall + 'api/order'

export function submitNewOrder (data) {
  return request(`${service}/submitNewOrder`, {method: 'post', data: data})
}

export function doPay (data) {
  return request(`${service}/pay`, {method: 'post', data: data})
}
